package com.adhere.system.service;

import com.adhere.system.pojo.dto.RolePrivilegeDto;
import com.adhere.system.pojo.RbacRole;
import com.adhere.system.pojo.vo.PageVo;
import com.adhere.system.pojo.vo.RoleVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 角色表删除执行：逻辑真删除 服务类
 * </p>
 *
 * @author 
 * @since 2021-04-02
 */
public interface IRbacRoleService extends IService<RbacRole> {

    void addRole(RbacRole role, List<String> privilegeCodeList);

    List<RbacRole> getRoleListByUserCode(String userCode);

    void updateRolePrivilege(RolePrivilegeDto rolePrivilegeDto);

    PageVo<RbacRole> getRolePage(Integer currentPage, Integer pageSize, String name);

    RoleVo getRoleDetailByRoleCode(String roleCode);
}
